﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Inventor.Master" AutoEventWireup="true" CodeBehind="findchild.aspx.cs" Inherits="HospitalSystem.findchild" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div id="sidebar">
					<ul>
						<li>
							<h2>ลงทะเบียนเด็ก</h2>
							<ul>
							
							
							
										  <li><a href="findchild.aspx"><img border="0" src="button/find.jpg"></a></li>
								<li><a href="reg.aspx"><img border="0" src="button/reg1.jpg"></a></li>
                                
                                 <li><a href="checkmember.aspx"><img border="0" src="button/family1.jpg"></a></li>
                                                          <li><a href="healthinfo.aspx"><img border="0" src="button/h1.jpg"></a></li>
                                <li><a href="education.aspx"><img border="0" src="button/edu1.jpg"></a></li>
                                <li><a href="rightsinfo.aspx"><img border="0" src="button/rigth1.jpg"></a></li>
                              
							
							</ul>
						</li>
					</ul>
				</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    ค้นหาเด็ก
ตามความพิการ ตามช่วงอายุ<br />
    <br />
        ค้นหาเด็ก
        &nbsp;<br />
    <br />
    <asp:GridView ID="childlist" runat="server" 
        AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" 
        onpageindexchanging="familylist_SelectedIndexChanged" 
        >

     <Columns>
      
    
       <asp:HyperLinkField   
                    HeaderText="เลขประชาชน"  
                       DataNavigateUrlFields="CID"  
                    DataNavigateUrlFormatString="~/ChildDetails.aspx?CID={0}"  
                    DataTextField="CID"  
                    />
          
             <asp:HyperLinkField   
                    HeaderText="ชื่อ"  
                         DataNavigateUrlFields="CID"  
                    DataNavigateUrlFormatString="~/ChildDetails.aspx?CID={0}"  
                    DataTextField="FirstName"  
                    />  
                
                     <asp:HyperLinkField   
                    HeaderText="นามสกุล"  
                        DataNavigateUrlFields="CID"  
                    DataNavigateUrlFormatString="~/ChildDetails.aspx?CID={0}"  
                    DataTextField="LastName"  
                    />
                    
                      <asp:HyperLinkField   
                    HeaderText="ความพิการ"  
                    DataNavigateUrlFields="CID"  
                    DataNavigateUrlFormatString="~/ChildDetails.aspx?CID={0}"  
                    DataTextField="DisabilityType"  
                    />
            
   
            
        </Columns>
        <AlternatingRowStyle BackColor="White" />
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerSettings FirstPageText="First" LastPageText="Last" 
            Mode="NumericFirstLast" PageButtonCount="2" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    <br />
    <br />
    <asp:Label ID="SelectStat" runat="server" Text=""></asp:Label>
    <asp:Label ID="Label2" runat="server" Text="Label" Visible="False"></asp:Label>
&nbsp;<asp:Label ID="Label3" runat="server" Text="Label" Visible="False"></asp:Label>
    <br />
    <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label>
        <asp:Label ID="pslabel" runat="server" Text="Label" Visible="False"></asp:Label>
    <br />
        <asp:Label ID="Label4" runat="server" Text="1" Visible="False"></asp:Label>
        <asp:Label ID="Label5" runat="server" Text="1" Visible="False"></asp:Label>
    <br />
    <asp:Button ID="Button3" runat="server" Text="ลงทะเบียนเด็กใหม่" 
        onclick="Button3_Click" />
    <br />
    <br />
                        <br />
    <br />
    <br />
    <br />
&nbsp;
</asp:Content>
